class CreateOrders < ActiveRecord::Migration
  def self.up
    create_table :orders do |t|
      t.integer :user_id
      t.string :address
      t.string :phone
      t.float :extra_price
      t.string :extra_comment
      t.string :status
      t.float :total_price
      t.integer :operator_id
      t.date :start_date
      t.date :end_date

      t.timestamps
    end
  end

  def self.down
    drop_table :orders
  end
end
